import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    name: '主页',
    component: () => import('../views/Home.vue'),
  },
  {
    path:"/",
    redirect:"/home"
  }
]

const router = new VueRouter({
  routes
})

export default router
